<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 *
 * base_url/
 *
 * @package    controllers
 * @author     Bertrand Kintanar <bertrand.kintanar@gmail.com>
 * @version    $Id: rss.php 159 2011-09-12 04:04:01Z bertrand.kintanar@gmail.com $
 * @copyright  &copy; 2011 NaCl.org WebGroup
 *
 */
class Rss extends MY_Controller {

    
    public function __construct()
    {
        parent::__construct();
        parent::_get_script(__FILE__);
    }
    
    public function index()
    {
        $_article_obj = new \models\Article;
        $rss = $_article_obj->getRSSFeed();
        
        header('Content-type: application/xml');
        
        print ($rss);
    }
}
